<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="inc/CheckLogin.jsp" %>
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta content="text/html; charset=GB2312" http-equiv="Content-Type">
<title>自定义标签管理</title>
<link type="text/css" rel="stylesheet" href="images/style.Css">
<script type="text/javascript"> 
  function checkAdd(){
     var lname=document.getElementById("lname");
     var linfo=document.getElementById("linfo");
      if(lname.value==""){
     	alert("请输入标签代码");
     	lname.focus();
     	return false;
     }else if(linfo.value==""){
        alert("请输入标签说明");
        linfo.focus();
        return false;
     }
     
     return true;
  }
</script>
</head>
<body>
<form action="LableAction!save.do" method="post" onsubmit="return checkAdd()" name="frm">
	<table width="100%" cellspacing="1" cellpadding="3" border="0" bgcolor="#E1E1E1" class="css_table">
	  <tbody><tr class="css_menu">
	    <td colspan="2"><table width="100%" cellspacing="0" cellpadding="4" border="0" class="css_main_table">
	        <tbody><tr>
	          <td class="css_main"><a href="LableAction!findLists.do">自定义标签管理</a></td>
	        </tr>
	      </tbody></table></td>
	  </tr>
	 
	    
	    <tr>
	      <td class="css_col11">标签代码：<div style="color:#ccc;letter-spacing: 0px;font-size:13px;" id="hName">只能是英文,不可重复&nbsp;</div></td>
	      <td class="css_col21">
	      <input type="text" size="40" value="" onblur="hName.style.color='#ccc';" onfocus="hName.style.color='red';" id="lname" name="lname" class="css_input">
	      </td>
	    </tr>
	    
	    <tr>
	      <td class="css_col12">标签说明：<div style="color:#ccc;letter-spacing: 0px;font-size:13px;" id="hInfo">简要说是该标签的使用和用途&nbsp;</div></td>
	      <td class="css_col22">
	      <input type="text" size="40" value="" onblur="hInfo.style.color='#ccc';" onfocus="hInfo.style.color='red';" id="linfo" name="linfo" class="css_input">
	      </td>
	    </tr>
	    
	    <tr>
	      <td class="css_col11">HTML代码：<div style="color:#ccc;letter-spacing: 0px;font-size:13px;" id="hCode">HTML值,自定义的标签优先权最高,所以你可能调用系统标签&nbsp;<br>你可以使用＄＄＄区分多个标签值&nbsp;</div></td>
	      <td class="css_col21">
	      <textarea onblur="hCode.style.color='#ccc';" onfocus="hCode.style.color='red';" style="width:98%;height:400px;" id="lcode" name="lcode"></textarea>
	      </td>
	    </tr>
	    <tr class="css_page_list">
	      <td colspan="2"><input type="submit" value="保存" name="Submit"></td>
	    </tr>
	  
	</tbody></table>
	
</form>
</body></html>